package pack0601; //指定这个类是哪个文件夹的
//运算符----算术运算符
public class DemoA {

    public static void main(String[] args) {
        int a =9;
        int b =2;
        int c1 =a+b;
        int c2 =a-b;
        int c3 =a*b;
        int c4 =a/b; //整数除以整数,得到的永远是整数
        int c5 =a%b; //余数
        System.out.println(c1);
        System.out.println(c2);
        System.out.println(c3);
        System.out.println(c4);
        System.out.println(c5);
        double random = Math.random();
        System.out.println(random);
        int d = (int)(random*90000+10000);
        System.out.println(d);
        int ww = d/10000; //5.8963
        int qw = d/1000 % 10;
        int bw = d/100 % 10;
        int sw = d/10 % 10;
        int gw = d % 10;
        System.out.println(gw);
        System.out.println(sw);
        System.out.println(bw);
        System.out.println(qw);
        System.out.println(ww);

    }
}
